-- GENERATED SPELL FOR [Bone Warrior] --


function spell0_26126(pUnit, Event) --@Sunder Armor,n/a--
pUnit:FullCastSpellOnTarget(50370,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26126', 15338, 1)
end

function Sorts_26126(pUnit, Event)
local choix_sorts_26126 = math.random(0, 0)
if choix_sorts_26126 == 0 then
pUnit:RegisterEvent('spell0_26126', 1, 1)
end
end

function mob26126_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26126', math.random(1500, 3000), 1)
end

function mob26126_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26126_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26126_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26126, 1, 'mob26126_Action')
RegisterUnitEvent(26126, 2, 'mob26126_Leave')
RegisterUnitEvent(26126, 3, 'mob26126_Kill')
RegisterUnitEvent(26126, 4, 'mob26126_Die')
